import subprocess
from utils.global_log import logger

def command_run(command):
    '''
    
    '''
    #out = subprocess.check_output(command, shell=False, text=True)
    exitcode,out=subprocess.getstatusoutput(command)
    return out


if __name__=='__main__':
    command='ping www.baidu.com'
    res=command_run(command)
    logger.info(res)

    command='python ./selenium_operate.py'
    res=command_run(command)
    logger.info(res)